from django.db.models import CharField,DateTimeField,IntegerField,DateField,DecimalField,TextField,ForeignKey,BooleanField,DO_NOTHING

from apps.vadmin.op_drf.models import CoreModel


class Uploads(CoreModel):
    category_type = CharField(max_length=32,null=True,verbose_name="分类类型")
    filename = CharField(max_length=191,null=True,verbose_name="文件名称")
    url = CharField(max_length=256,null=True,verbose_name="文件url地址")
    file_type = CharField(max_length=32,null=True,verbose_name="文件类型")
    file_size = CharField(max_length=32,null=True,verbose_name="文件大小")
    bind_id = IntegerField(null=True,verbose_name="关联Id")
    filenotes = CharField(max_length=256, null=True,verbose_name="备注")
    deleted_datetime = DateTimeField(null=True,verbose_name="删除时间")

    class Meta:
        verbose_name = '上传资源表'
        verbose_name_plural = verbose_name
